package cn.formaggie.dao;

import cn.formaggie.entity.model.sample.Sample;

import java.util.List;
import java.util.Map;

public interface SampleDao {

    List<Sample> getAllSamples();

    Sample getSampleById(Integer id);

    List<Sample> findSamples(Map<String,Object> map);

    List<Sample> findSamplesWithTypeId(Integer typeId);

    Integer getSamplesCount(Map<String,Object> map);

    Integer addSample(Sample sample);

    Integer modifyInfo(Sample sample);

    Integer deleteSample(Integer id);
}
